export const widgetText =  {
    code: 'widget-text',
    type: 'text',
    label: '文本',
    icon: 'font-size',
    preview: require('./preview/widget-text.png'),
    options: {
      // 配置
      setup: [
        {
          type: 'a-input-text',
          label: '图层名称：',
          name: 'layerName',
          required: false,
          placeholder: '',
          value: '文本框',
        },
        {
          type: 'a-input-text',
          label: '文本内容：',
          name: 'text',
          required: false,
          placeholder: '',
          value: '文本框',
        },
        {
          type: 'a-input-number',
          label: '字体大小：',
          name: 'fontSize',
          required: false,
          placeholder: '',
          value: '26',
        },
        {
          type: 'vue-color',
          label: '字体颜色：',
          name: 'color',
          required: false,
          placeholder: '',
          value: '#FAD400',
        },
        {
          type: 'a-input-number',
          label: '字体间距：',
          name: 'letterSpacing',
          required: false,
          placeholder: '',
          value: '0',
        },
        {
          type: 'vue-color',
          label: '字体背景：',
          name: 'background',
          required: false,
          placeholder: '',
          value: 'rgba(115,170,229,.0)',
        },
        {
          type: 'a-select',
          label: '文字粗细：',
          name: 'fontWeight',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'normal', name: '正常'},
            {code: 'bold', name: '粗体'},
            {code: 'lighter', name: '细体'}
          ],
          value: 'normal'
        },
        {
          type: 'a-select',
          label: '对齐方式：',
          name: 'textAlign',
          required: false,
          placeholder: '',
          selectOptions: [
            {code: 'center', name: '居中'},
            {code: 'left', name: '左对齐'},
            {code: 'right', name: '右对齐'},
          ],
          value: 'center'
        },
      ],
      // 数据
      data: [],
      // 坐标
      position: [
        {
          type: 'a-input-number',
          label: '横坐标',
          name: 'left',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '纵坐标',
          name: 'top',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '深度',
          name: 'zIndex',
          required: false,
          placeholder: '',
          value: 0,
        },
        {
          type: 'a-input-number',
          label: '宽度',
          name: 'width',
          required: false,
          placeholder: '该容器在1920px大屏中的宽度',
          value: 200,
        },
        {
          type: 'a-input-number',
          label: '高度',
          name: 'height',
          required: false,
          placeholder: '该容器在1080px大屏中的高度',
          value: 40
        },
      ],
    }
  }